all: configure compile

configure:
	(cd scripts; $(MAKE) configure)
	(cd src; $(MAKE) configure)

compile:
	(cd c_src; $(MAKE))
	(cd src; $(MAKE) compile)

doc:
	(cd src; $(MAKE) doc)

clean:
	rm -f *~
	(cd scripts; $(MAKE) clean)
	(cd c_src; $(MAKE) clean)
	(cd src; $(MAKE) clean)

mrproper:
	rm -f *~ emc emc.conf
	(cd scripts; $(MAKE) mrproper)
	(cd c_src; $(MAKE) mrproper)
	(cd src; $(MAKE) mrproper)
